import request from '@/utils/request'


export function grade1(location) {
  return request({
    url: '/api/equipment/list_grade1',
    method: 'get',
    params: {}
  })
}

export function plcData(id) {
  return request({
    url: '/api/equipment/plcData',
    method: 'get',
    params: {id}
  })
}


export function plcRealTime(id) {
  return request({
    url: '/api/equipment/plc_real_time',
    method: 'get',
    params: {id}
  })
}

export function childList(id) {
  return request({
    url: '/api/equipment/list_child',
    method: 'get',
    params: {id}
  })
}

export function childListData(id) {
  return request({
    url: '/api/equipment/list_child_plc',
    method: 'get',
    params: {id}
  })
}




export function thWaterData(location) {
  return request({
    url: '/api/factory/th/real_time',
    method: 'get',
    params: {}
  })
}

export function waterFactoryData(location) {
  return request({
    url: '/api/factory/'+location+'/real_time',
    method: 'get',
    params: {}
  })
}

export function waterMeterData(location) {
  return request({
    url: '/api/eMeter/'+location,
    method: 'get',
    params: {}
  })
}

export function reservoirData(location) {
  return request({
    url: '/api/reservoir/'+location,
    method: 'get',
    params: {}
  })
}
